<script setup>
import router from '@/router/index'
import { ref } from 'vue'
import HomeShopList from '@/views/home/components/HomeShopList.vue'
const nodata = ref(false)
</script>

<template>
  <!-- nav -->
  <div class="nav">
    <van-icon class="back" name="arrow-left" @click="router.go(-1)" />
    <span>我喜欢的</span>
  </div>
 <div class="main">
    <van-empty description="空空如也" v-if="nodata" />
    <HomeShopList class="list" v-else :showTitle="false" />
 </div>
</template>

<style lang="scss" scoped>
.nav {
  position: fixed;
  height: 90px;
  width: 100%;
  display: flex;
  background-color: #fff;
  align-items: flex-end;
  border-bottom: 1px solid #999;

  span {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 18px;
    color: #333;
    padding-bottom: 5px;
  }

  .back {
    margin-left: 6px;
    margin-bottom: 10px;
  }

  .van-icon-arrow-left:before {
    font-size: 24px;
    color: orange;
  }

}

.main {
  padding-top:90px;
}
</style>